package org.jsoncrypto.util;

import static org.junit.Assert.*;

import java.io.IOException;
import java.util.Arrays;

import org.junit.Test;

public class testCompress {

	@Test
	public void test() throws IOException {
		byte[] bytes = "testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest".getBytes();
		byte[] compressed = Compress.compress(bytes);
		
		byte[] decompressed = Compress.decompress(compressed);
		assertEquals(bytes.length, decompressed.length);
		assertTrue(Arrays.equals(bytes, decompressed));
	}

}
